package org.dromara.bean.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.bean.domain.HisMember;
import org.dromara.bean.model.BaseWechatUserModel;
import org.dromara.bean.model.WechatLoginModel;
import org.dromara.bean.model.WeiXinModel;


/**
 * 小程序-公众号的封装
 */


public interface IBaseWechatService extends IService<HisMember> {

    /**
     * 获取access_token
     * <p>
     * 支持微信小程序和服务号获取
     *
     * @return
     */
//    public String getAccessToken(String type, String userType);

//    public String getUrlLink(String type,String userType,String path,String query) throws Exception;
//
//    public String getTicket(String accessToken);
//
//    public WeiXinModel getWinXinEntity(String url, String ticket);
//
//    public BaseWechatUserModel getUserInfo(String openid, String ACCESS_TOKEN);
//
//    public JSONObject getAccessTokenWechatUserInfo(WechatLoginModel appWechatLoginModel, String appType, String userType);

    public JSONObject getAppInfoByType(String appType);

}
